package com.content.scaffold.common.client.base;

import com.notarycloud.client.NotaryCloudClient;
import com.notarycloud.client.NotaryCloudClientConfig;
import com.notarycloud.client.NotaryCloudCredentials;

/**
 * @author xiaojl
 */
public class NotaryCloudFundClient {
    public static NotaryCloudClient getNotaryCloudClient(String appId, String appSecret, String baseUrl) {
        NotaryCloudCredentials cloudCredentials = new NotaryCloudCredentials(appId, appSecret);
        NotaryCloudClientConfig config = NotaryCloudClientConfig.defaultBuilder().baseUrl(baseUrl).build();

        return new NotaryCloudClient(cloudCredentials, config);

    }
}
